<template>
  <div>
    <el-empty description="404找不到当前页" />
    <div class="centerS">
      <el-button @click="pushHome()">返回首页</el-button>
    </div>
  </div>
</template>
<script lang='ts' setup>
import {useRouter} from 'vue-router'

// route的调用
const router = useRouter()

const pushHome = () => {
  router.push('/')
}

</script>
<style scoped>
.centerS{
  margin: 0 auto;
  @apply flex items-center justify-center;
}
</style>
